bitkeeper revision 1.1380 (426cb282h_zj6PQYX7HuwLMZrI68ig)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 25 Apr 2005 09:04:02 +0000 (09:04 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 25 Apr 2005 09:04:02 +0000 (09:04 +0000)
More gcc4 signed/unsigned char fixes.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/drivers/char/console.c

index 1d6769fb722166d30e79ddb50bc524c3a40ce977..5277d7b3a93c0a232017c7066f88001788a12cf5 100644 (file)
@@ -493,10 +493,10 @@ int irq_console_getc(void)
 /* Send output direct to console, or buffer it? */
 int debugtrace_send_to_console;
 
-static unsigned char *debugtrace_buf; /* Debug-trace buffer */
-static unsigned int   debugtrace_prd; /* Producer index     */
-static unsigned int   debugtrace_kilobytes = 128, debugtrace_bytes;
-static spinlock_t debugtrace_lock = SPIN_LOCK_UNLOCKED;
+static char        *debugtrace_buf; /* Debug-trace buffer */
+static unsigned int debugtrace_prd; /* Producer index     */
+static unsigned int debugtrace_kilobytes = 128, debugtrace_bytes;
+static spinlock_t   debugtrace_lock = SPIN_LOCK_UNLOCKED;
 integer_param("debugtrace", debugtrace_kilobytes);
 
 void debugtrace_dump(void)
@@ -535,9 +535,9 @@ void debugtrace_printk(const char *fmt, ...)
 {
     static char    buf[1024];
 
-    va_list        args;
-    unsigned char *p;
-    unsigned long  flags;
+    va_list       args;
+    char         *p;
+    unsigned long flags;
 
     if ( debugtrace_bytes == 0 )
         return;
@@ -582,7 +582,7 @@ static int __init debugtrace_init(void)
         return 0;
 
     order = get_order(bytes);
-    debugtrace_buf = (unsigned char *)alloc_xenheap_pages(order);
+    debugtrace_buf = (char *)alloc_xenheap_pages(order);
     ASSERT(debugtrace_buf != NULL);
 
     memset(debugtrace_buf, '\0', bytes);